package com.castle.fortress.admin.oa.mapper;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.oa.entity.DayStatisticsEntity;

import java.util.ArrayList;
import java.util.Map;
import java.util.List;
/**
 * 日数据报表Mapper 接口
 *
 * @author whc
 * @since 2022-11-04
 */
public interface DayStatisticsMapper extends BaseMapper<DayStatisticsEntity> {

	/**
	 * 扩展信息列表
	 * @param pageMap
	 * @param dayStatisticsEntity
	 * @return
	 */
	List<DayStatisticsEntity> extendsList(@Param("map")Map<String, Long> pageMap, @Param("dayStatisticsEntity") DayStatisticsEntity dayStatisticsEntity);

	/**
	 * 扩展信息记录总数
	 * @param dayStatisticsEntity
	 * @return
	 */
	Long extendsCount(@Param("dayStatisticsEntity") DayStatisticsEntity dayStatisticsEntity);

	/**
	 * 日数据报表扩展详情
	 * @param id 日数据报表id
	 * @return
	 */
      DayStatisticsEntity getByIdExtends(@Param("id")Long id);


	ArrayList<Long> getExistsIds(@Param("date") String date);
}

